Average word length |
---|
7.9962 |
word length | percentage |
---|---|
1 | 0.0875 |
2 | 0.9613 |
3 | 5.2134 |
4 | 8.4411 |
5 | 10.9942 |
6 | 12.3924 |
7 | 13.0088 |
8 | 12.5797 |
9 | 11.3913 |
10 | 9.5127 |
11 | 7.6250 |
12 | 5.9278 |
13 | 4.4477 |
14 | 3.3747 |
15 | 2.4189 |
16 | 1.7760 |
17 | 1.3107 |
18 | 0.9503 |
19 | 0.7236 |
20 | 0.5024 |
21 | 0.3806 |
22 | 0.2798 |
23 | 0.2079 |
24 | 0.1557 |
25 | 0.1182 |
26 | 0.0934 |
27 | 0.0765 |
28 | 0.0742 |
29 | 0.0572 |
30 | 0.0463 |
In this subsection we ignore the fact that words have different frequencies. So for the average word length, each word is considered equally. For a fixed word length, we count the number of different words having this length.
The plot of the word length against the number of words of this length usually has a clear maximum between 10 and 15. Moreover, with a logarithmic scale of the y-axis, we get a nearly linear part between length 15 and 40.
Average word length is one of the classic parameters for a language.
Counting without multiplicity makes average word length depending on the corpus size. A larger corpus contains more words, and the additional words are usually longer. Hence, average word length should increase with corpus size.
Average word length:
select avg(char_length(word)) from words where w_id>100;;
Data for large table:
SELECT @all:=count(*) from words where w_id>100;
select char_length(word), 100*count(*)/@all from words where w_id>100 group by char_length;
Do we have the linear part between 15 and 40 for (nearly) all languages?
Where does it come from?
Calculate and compare the slope!
3.5.1.2 Words by Length with multiplicity